package com.yykt.app.part;

public class Student {
    public static int WAIT_TIME = 6000;
    String name;
    String sex;
    int age;

    public Student(){
        WAIT_TIME += 1000;
    }
    public Student(String name, int age){
        this.name = name;
        this.age = age;
        WAIT_TIME += 1000;
    }
    void print(String name, String sex, int age){
        System.out.println(name);
        System.out.println(age);
        System.out.println(sex);
    }
    void print(String name, String sex){
        int age = 20;
        this.print(name, sex, age);
    }
    void print(){
        System.out.println(name);
        System.out.println(age);
        System.out.println(sex);
    }
    String formatter() {
        return new StringBuilder()
                .append("姓名:")
                .append(name)
                .append("\t")
                .append("性别:")
                .append(sex)
                .append("\t")
                .append("年龄:")
                .append(age)
                .toString();
    }

    public String getname() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }
}
